extends "../fuchou-1/fuchou-1.gd"


func _extInit():
	._extInit()
	lv = 2             #等级的设置
	addSkill("<亡语>每次死亡提高自身3点三维属性，上限300，每回合触发一次", "轮回")
	if team == 2:
		var step = sys.main.getStep()
		attInfox.atk += step * 4
		attInfox.mgiAtk += step * 4
		attInfox.def += step * 4

var num = 0
#进化后继承属性
func extendsEvo(cha):
	.extendsEvo(cha)
	if cha.get("num") != null:
		self.num = cha.num	

func toJson():
	var json = .toJson()
	json["num"] = num
	return json

func deathWord():
	.deathWord()
	if num < 300:
		attEx.atk += 3
		attEx.mgiAtk += 3
		attEx.def += 3
		upAtt()
		num += 3	
		